<?php
namespace Home\Controller;
use Think\Controller;
class NewsController extends Controller {
    public function index(){
		//权限检查
	    $rbac=new \Org\Util\Rbac();
	    $rbac::checkLogin();

	    if(!$rbac::AccessDecision()){  
	        echo '<script type="text/javascript">alert("no access");</script>';  
	        die(); 
	    }
       echo 'i am news';
    }

    public function dayin(){
    	echo 'HELLO';
    }
}